package simpleFactory;/*
 * @auther 顶风少年
 * @mail dfsn19970313@foxmail.com
 * @date 2019-07-23 14:42
 * @notify
 * @version 1.0
 */

public class Strawberry implements Fruit {

    @Override
    public void grow() {
        log("Strawberry is growing...");
    }

    @Override
    public void harvest() {
        log("Strawberry has been harvested");
    }

    @Override
    public void plant() {
        log("Strawberry has been planted");
    }

    //    辅助方法
    public static void log(String msg) {
        System.out.println(msg);
    }
}
